

if ( SERVER ) then

	AddCSLuaFile( "shared.lua" )
	
	SWEP.HoldType			= "ar2"
	
end

if ( CLIENT ) then

	SWEP.PrintName			= "P-90"
	SWEP.Author				= "Valve"
      SWEP.Slot				= 2
	SWEP.SlotPos			= 3
	SWEP.IconLetter			= "p"

      SWEP.ViewModelFlip		= true
	
	killicon.AddFont( "weapon_p90", "CSKillIcons", SWEP.IconLetter, Color( 255, 80, 0, 255 ) )
	
end


SWEP.Base				= "weapon_cs_base"
SWEP.Category			= "Counter-Strike"

SWEP.Spawnable			= true
SWEP.AdminSpawnable		= true

SWEP.ViewModel			= "models/weapons/v_smg_p90.mdl"
SWEP.WorldModel			= "models/weapons/w_smg_p90.mdl"
SWEP.HoldType = "ar2"

SWEP.Weight				= 5
SWEP.AutoSwitchTo		= false
SWEP.AutoSwitchFrom		= false

SWEP.Primary.Sound			= Sound( "Weapon_p90.Single" )SWEP.Primary.Recoil			= 0.4					
SWEP.Primary.Damage			= 20		
SWEP.Primary.NumShots		= 1						
SWEP.Primary.Cone			= 0.007		
SWEP.Primary.ClipSize		= 50						
SWEP.Primary.Delay			= 0.08				
SWEP.Primary.DefaultClip	= 160				
SWEP.Primary.Automatic		= true				
SWEP.Primary.Ammo			= "smg1"

SWEP.Secondary.ClipSize		= -1
SWEP.Secondary.DefaultClip	= -1
SWEP.Secondary.Automatic	= false
SWEP.Secondary.Ammo			= "none"

SWEP.IronSightsPos = Vector (4.3923, -2.5158, 0.4485)
SWEP.IronSightsAng = Vector (7.8811, -1.0178, 0.0184)

